package org.lds.hotkey.common.util;

import org.lds.hotkey.common.enums.ErrorEnum;
import org.lds.hotkey.common.exception.BusinessException;

import java.net.InetAddress;

public class InetAddressUtil {
    public static InetAddress getInetAddress() {
        try {
            return InetAddress.getLocalHost();
        } catch (Exception e) {
            throw new BusinessException(ErrorEnum.GET_INET_ADDRESS_FAIL);
        }
    }
}
